Remove '\' in the end of the lines in files controller