Tiny improvement in standard functions used

@devoncarew: I happened to stumble upon this standard library function some time ago :)