Added getDataAsString method
Refactor
Fixed to removed duplicated creation of control