correct character positions for words with no preceding space