string adaptor class defined