Newline correction 022114

Fixed the issue with newline characters being appended to each string &
subsequently screwing things up later. Also updated a function name to
make more sense.