javascript string compare ignore special characters