man test - check file types and compare values

[[ -n $string ]]