fixes problematic tokens in expression if possible