fixed error where String params passed in instead of objects

Fixed error where String parameters were passed in to stripParser(...) method instead of complex objects. Ensured that if type was string then sanitization of object occured.