type checking for string arguments