added string abbreviation method