Added type check for single character string