extend resume api to parser
fix boundary issue in clean_string