Check if string consists only of desired char

Code Example - Check if string consists only of desired char

                
                        bool ConsistsOnly(string input, char wanted){
	input = input.Trim();
	foreach(char current in input){
    	if(current != wanted){
        	return false;
        }
    }
    return true;
}