Added remove prefixes method.