結果 : java function to check if string is null or empty