now can send a string to the command funciton