- remove newlines from the $pid