cleanup + additional cast to string during validation