Added call to oss.str to clear ostringstream