fixed uncatch empty str, add form index conditions