remove redundant solution prefix