in reply to Pattern matching

Yes, please post some example code and we can probably help out more. Have you checked that you are using "eq" to compare the names and not "=="?