refactored strtools
minor change