Removed redundant || typeof(T) == typeof(string)