Remove newline from perror