Hi Petar,
you can use substring function.
eg: substring('javithmale',5,4) it returns male.
Hi Patric ,
Download community module from the marketplace , there you can find the string splint java action under StringUtils which will help to achieve your case