Pattern recognition works well

when the pattern is matched exactly