Fix layertitle string comparison