add cutstr for String prototype