sanitize_string method
Test helpers