added method to parse sld from string