export class StringUtils { /**
     * Ensure the string ends with the specified suffix
     */ public static EnsureEndsWith ( str , suffix ) { if ( ! str . endsWith ( suffix ) ) { return str + suffix ; } return str ; } public static EnsureStartsWith ( str , prefix ) { if ( ! str . startsWith ( prefix ) ) { return prefix + str ; } return str ; } }