added ternary check

ternary to checking if isnaholelength is not a number but a character