Is there any command by which I can summarize special characters (e.g. *,-.) of string variable?