Fixed CPU leak and usage of unallocated memory on strstrip()