Clean the string generation