static S trimSubstring(S s, int x) { ret trim(substring(s, x)); } static S trimSubstring(S s, int x, int y) { ret trim(substring(s, x, y)); } ifclass IntRange static S trimSubstring(S s, IntRange r) { ret trim(substring(s, r)); } endif static S trimSubstring(int x, S s) { ret trimSubstring(s, x); }