Fixed remove prefixes. Added test case.