added cleaning the SMS query data