Abstract normalizeUIKeys and normalizeUIValues out into seperate functions and add normalizeUIString utility function