Remove extra newline character from readfile