fixes bug with words having apostrophes