added support for just pressing enter to solve the expression