Changed temp.length to temp.length() cause we're dumb