trim update

Updated trim so as to exculde \t (tab) charachters too.