took care of all space issues except for extra spaces when piping and no spaces when redirecting