Removes unexpected string.