rm newline chars in returned strings