Fixed a small little bug where it would sometimes use characters from the previous string

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>