make a seperate function for cleaning up the text