Throws an error if parameter is not an string
Value to check
Range conditions, if any
Name of parameter, for customising error message
Throws an error if parameter is not an string