Add check to make sure parameter is a string