returns position after last non-space character of line, returns 0 position if no non-space chars on line
See Implementation
returns position after last non-space character of line, returns 0 position if no non-space chars on line