removed '\n' at last row values in result hashes