get rid of str conversion in comparison when getting the lexical value