Per lxml recommendation, do not access _Element.attrib directly
Fix #55: Include any trailing spaces in the text group regex.