Adds method to truncate strings
Allows to add a WMS layer