Changed getData to getString