a little c-library that trims c-chars from leading and trailing whitespaces