adjusted getData to return a string for consistency.  A undefined may of been thrown where a string was expected.