[token_default] reduce the number of ternary operators in token substitution
Merge pull request #539 from portertech/token_default

[token_default] reduce the number of ternary operators in token substitution