Cleaned up the sanitize function
Cleaned up the sanitize function