matchesPattern: Comment and speed-up