Attempt to circumvent an apparent problem with ltrim() on OS X