refactor string abbreviation totally