extend substr