Extract the SMS code as an utility class, various cleaning and fix