Escape text titles when building regex