remove unnecessary prefixes from names