improve string parsing

Configuration fails to parse

value = [    0      0]

as a std::vector<double> due to the whitespace. Actually an issue in to_string. Annoying...