Set parses a comma-separated string of method names and updates the Methods
slice. It supports individual method names, as well as profile names that
expand into multiple methods. If an invalid method or profile name is
encountered, it returns an error.