Fixed casting to String to prevent bug that no longer exists.