Cleaned up strip() function.

Removed superflous runner variable and made the maxlen parameter
a constant to make sure parameters will behave as expected.
Use strncpy() instead of strcpy()

Remove possible source of memory violation.
Merge branch 'stripfix' to fix strip() function.