Remove b and ac from string:corner case aacacc