Refactor substitution strings to an enum