Fix assertion for empty strings