Changed way attribute validation is done on string attributes to ease Python 2 to 3 transition.