swapTo window swapping

Trying to get a window to swap based on a list box choice...I am passing (according to a console print) the exact string to swap the window...error message is a window by that name cannot be found...like I said, it is returning the full path to the window....'NAV/TopWindow' eg...(with single quotes)
If I copy the exact text from the console, and paste it into the swapTo, it opens the window.
the code runs on the mouse clicked action of the list box...

 #get the value from the list box
 winSelect=event.source.getSelectedValue()
 
 #run the query to get the window path
 pathData=system.db.runPrepQuery("SELECT WindowPath FROM JobMenu WHERE MenuItem=?", [winSelect])
 
 #write value so we can swap out the window
 winPath = "'" + pathData.getValueAt(0, 0) + "'"
 
 #swap the window we selected
 system.nav.swapTo(winPath)

You've posted code as a quotation. You need to format it as code. Please see Wiki - how to post code on this forum and use the pencil icon button to edit your post. It's especially important to reveal Python indentation (or none). Thanks.

There is no need to add apostrophes to the string that is being returned by pathData.getValueAt(0, 0). Instead, simply hand the string to the swapTo method directly without modification:

 winPath = pathData.getValueAt(0, 0)
 
 system.nav.swapTo(winPath)

or

system.nav.swapTo(pathData.getValueAt(0, 0))

Thanks, I had already tried without the quotes...but tried again to make sure...
I looked for the 50th time and realized I had all caps for the folder name the window was in! Typos killing me!
Thanks for the assist!