remove trailing colons from prefix