Try to sanitize string