Trim strings before comparison
Use a charset-aware method