Make block chart generating function case insensitive