Went back to regex, using stringstream now as well