extend String.prototype only if requested