Function stringTest

Throws an error if parameter is not an string