Added inputtype support for string preferences.