# Tools - Text Maps

The text maps are used by a number of the regular expression functions. In general, they hold a regular expression used to look for a pattern in some text.

## Names

The Names maps are used by the name handling functions: fname() and lname().

The functions use the prefix map and suffix map to remove name prefixes (Mr, Mrs,..) and suffixes (II, First, ...) and then extract the first and last names.

## Case

The Case tables are used by the pcase() function to check for exceptions when proper casing a string.

## Text Map 1/2/3

The text map tables are used by the textmap() function, which is used to perform multiple text replacements. An example might be using a text map to standardise on state names in an address field - checking for all variants and changing each variant to the correct version.