check if attributes is not an empty string