Returns the defaultval if the val string is null or empty.