Maybe an issue in trimData()  
Maybe an issue in trimData()