Altered trim() to consider a leading '%' in the title (see vim-notes change)