Make version parameter pointer to constant value

String should never be changed by the function anyway and this fixes a couple of compiler warnings.