refactor and expose parse_long_uci_string