make title consistent

We could improve on this func whilst we're here by adding the pipe only if title is defined.