Javascript string:
var javascriptString = 'This is plain text';
Java string:
var javaString= new java.lang.String('This is plain text');