clean up code and attempt to read to next delimiter