Slider, Browse by category

it should be like :
if (input != null){
         input = input.toLowerCase();
         return input.substring(0, 1).toUpperCase() + input.substring(1);
}else {
return false;
}