Summary
Given a string, try to convert this into a vector. Example input formats that work would be "1,1,1", "1;1;1", "[1 1 1]".
This handles a bunch of different separators ( ' ', ',', ';', '\n', '\r' ).
It also trims surrounding characters ('[', ']', ' ', '\n', '\r', '\t', '"').