new method to remove header/footer of armored text