added working impl of string cut #160