Use stringstream instead of string concat