Fixed other functions when non -string values are passed

Not the cleanest way, but interesting jsperf result :
http://jsperf.com/convert-to-string-bj/2