Some of the code in the Str library could be more space efficient. In a couple of cases, two buffers are used where there should only be one.