Adding title attribute when present