Changes document title to path