fixing the letter extraction from words