clean up string handling in io.read a lil bit