I didn't use `TrimEnd` because that would trim the end of the file disregarding any new lines that were there in the original file, whereas like this it'll maintain whatever the user had in the original. However, if you want me to use `TrimEnd` then I'll change it.