Remove stringex dependency

Removes dependency on stringex library.