String manipulation example?

I read that the standard arithmetic, string manipulation, filters (+ sprintf) are available in templates.

I’d like to replace a string in one of my items. Could somebody provide a string manipulation example?

Thx, G

https://community.openhab.org/search?q=string%20manipulation

Thx, rossko.

Maybe my question was unclear: how would I do that in Habpanel?

Problem solved. I managed the manipulation by using a pure javascript function:

<div ng-init="{{
              	iconName = itemValue('WeatherInformation_Current_WeatherIconURL').split('/').pop().replace('gif', 'svg');
              	serverPath = 'http://icons.wxug.com/i/c/v4/';
              }}">
</div>
...
<td id="weather-cond">
      <img width="100" height="100" ng-src="{{serverPath + iconName}}"></img>
</td>
...