Substring error when no selected answer