Normalize patterns