pub(crate) fn is_percent(x: String) -> Result<(), String>