Java See If String Is Not Empty In Python