fix for #36 - miscalculation of task title length - changes as per @sindresorhus suggestions