rewrote input to be more parseable

start of parsing title attribute