Fixed by setting the string to "" before use. Don't know why that works, but I'll take it.