Custom Actions - Script - DataType Error


I’m getting an error message while executing the custom actions script. both the variables test_name and result1 are string variables created in the recorder. How to overcome the error?

input = [‘test_name’],
output = ‘result1’

def customScript() {
result1 = ‘test’;

Error Message:
Caused by: java.lang.ClassCastException: Cannot cast java.lang.String to at java.lang.Class.cast(

@anandhan You need to remove the quotes

Thanks, It’s not working on removing the quotes.

Resolved by using RString.of as below
result1 = RString.of(‘test’);