solved a simple string problem: name reduction