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

latest commit ea098d19ba
@anpep authored