correct varname, replace sprintf for concatenation

string concatenation is a tiny bit faster (10ths of seconds per million iterations)