More restrictive string matching