add a function for special characters