Trem the string

removing leading and ending white spaces from lines