Replacing string vars to enum vars to faster and clear code