use std::string::find instead sscanf when read line in parseConfigFromString