ensure all whitespace is stripped, now working properly