removed some unwanted characters in a test string