Inlines the choice for String or Long using ternary operator.