remove carriage return from output of service attach