changed remove loop in compileWords to remove characters from available
characters