Removed file_character_end, as that was not correctly representing the data.

Instead just used line_region.end. This now makes the code more clear. We want to start at the beginning of the code file and go to the character position at the end of the line_region to form our text_string.