fix function

I've realize that I've broken the function trying to work with the ñ in
spanish