You'll have to make a new String object inheriting from the old String, extended with lshift and rshift.
String
lshift
rshift