Fix: getSubstring() result is broken when ddic size is big