added text manipulation code
added misspellings