Added replaceAll function and advanced salutation parser.