Rewrote the entire string system and now it actually works flawlessly.