The variable name `lineContent` should be more accurate so code is easier to understand, so rename to something like `lineContentBeforeCursor`.