Added cleanString method