added command trim() and toLowerCase()