converts string of row info to a hash