Lazy Input Correction
Properly capitalizes input fields and trims whitespace.
Description
Checks input fields for poor capitalization. User input that is all lowercase or all uppercase will be properly capitalized with the first letter capital. Extra whitespace around input will also be removed.
What's being checked
If the first letter of a word in the input is lowercase, then the input will be filtered. If the first letter of a word is the capital and the last letter of that word is capital, then the input will be filtered.
Examples
- mcdonald to Mcdonald
- MCDONALD to Mcdonald
- McDonald to McDonald