New function to verify the update key. Changed the cleanTitle function to be a generic cleanText function