Check for value on component title before adding to toString