Change test for empty strings to generic bash test