moved string helper functions into a separate class file
cleaned up examples and updated to match code changes