factor out string creation
bind 'self' for instance in ruby