JavaScript Normalize strings