Changed inputs to trim tabs as well as spaces