!str #15026 Fix issues pointed out by Jason

Refs #15026 
should it specify what happens if `n` is not positive?