Handle single digit along with compound expressions