Steam nodes has a Tool.GetPhaseByName node which can work, but I believe you will have to edit the custom node to clean up an input conflict (and thereby take long term ownership of that technical debt in your organization). There might be an alternative node in another package, but I am not aware of one.
Baring that, you’ll need to get all the phases, pull a parameter which has a value which corresponds to the types of strings you want to use, and then use a FilterByBoolMask or other reduction by comparison method to pull the correct item from the collection. This can be done via nodes or code (Steam nodes uses a mix of the two).
What is the reasoning?
Reasoning is I am slowly working towards master script that creates sheets and everything associated with them like schedules sorting, phasing, renaming ect with one click. Right now I input for example “Sheet 1” and “Phase1” I want to be able to run the script for multiple sheets like Sheet 1-20 and Phase 1-20 using a list which I need the phase to be a string for. Also to cut down on input fields since sheet names match phases anyways
You could use All Elements of Class/Type and the Element Classes/Types nodes to get all phases in the project, then filter/dictionary/UI/whatever as required to get the ones you want.