removing white space/echoes before redirect