remove spaces in checkbox, radio, select types inputbox

remove spaces in checkbox, radio, select types inputbox. and code optimizing