Function isValidView

Returns true if the given string is a valid "view".