Added sanitize function and used to sanitize the string input parameters
in methods that create/change data.