remove unwanted spaces in test data