Replace title with alt
Remove trailing whitespace