New version of parsing strings in process.cpp