fixed string parsing

Still have a to fix something to do with math and itc_free_tape and
poole_free_tape.