Check if the value ends with the wildcard character. If it does, remove the wildcard character from the value and return true. Otherwise, return false.
value to check