class TitleBuilder {

    public String toString() {
        return new StringBuilder()
                .append(parentString)
                .append(nameString)
                .append(referenceString.length() > 0 && nameString.length() > 0 ? SPACE : "")
                .append(!referenceString.toString().equals(nameString.toString()) ? delimited(referenceString) : "")
                .toString().trim();
    }

    private  TitleBuilder();

}