added command trim()