use ListBuffer in string2KV
refactory to use ListBuffer in string2KV