class Test { String s1 = getString(); String s = s1 != null ? s1.trim() : ""; native String getString(); }