Bugfix on truncateTitle function actually returning the truncated title.