[[ Bug 13550 ]] Only consider preceding whitespace part of word chunk if end of range is end of string
Merge pull request #1221 from runrevali/bugfix-13550

[[ Bug 13550 ]] Correct handling of preceding whitespace in word chunks