added function fixWhiteSpace
added function fixCapitalization