Adapting string variables to a standard