Updating range logic

-Changing range.end logic to not account for highlighted textarea
-Using StringIterator's line/character numbers