Improve white space handling when determining next/prev visible position
Add documentation for expandToVisibleCharacter()