Added normalizeFlashMessage helper function and now use it when someone is adding a flash message.