fix: endsWith for short strings