There's no need to allocate a completely new nsCString when all we want to do is parse a character string into an integer. We can allocate a dependent string instead, which will avoid some memory churn.