ensure that data is string in A