Making more robust functions.
Added test for all util functions.
Added test for all util functions.
Added checks for non strings.
Added tests for all util functions.