Improved algorithm. Removed second RegExp call for highlighting. Updated docs. Removed last iteration when generating RegExp pattern to avoid single letter group