Wrote checkInputSanitization function