Fix: not removing text/file when asked length was greather than remaing text in file