You need to pass a string into the function as a parameter. Don't just use a variable that's defined outside of the function.