I have already gone through multiple tutorials but it is not working. Check if a String contains a special character https://www.geeksforgeeks.org/check-if-a-string-consists