I'm not 100% sure that you can remove the inch marks from the text, however, if you are writing code to change values, you can overwrite the text and this will accomplish this.
However, if you do this, you loose the ability to have the dimension updated with changes; these will have to be done...