added string check, more unit tests for different non-strings