changed words if for speed

changed the if that checked for valid makestring function uses in the array, this should increase speed on slower browsers.