Remove some unwanted text from a diagram