xhtml leaving character behind at start of file

kept leaving a '>' of the xml declaration. This fixed it. Why not do this with grep?