added strToTime function and started writing cmd_trim