simplify string parsing routines using ast_skip_*() functions.