Metadata in online form

I am automating the process of filling an online form. I have to fill around 400 forms. In the online form have a field called “Industry”. For ex: Let’s take a word rail. I have Rail Infrastructure as a sector under Infrastructure Industry and Rail under Transport. For a particular entry, i need to fill Rail Infrastructure as an industry. I am facing a problem while running the bot as i think bot is reading it till rail and throwing an error saying there is ambiguity. How do i resolve this?