remove line breaks and extra spaces in getCleanName