refactoring: out the sub strings from parse_ans to init for convinience