Strip off '[]' when auto generate label from field name of multi-select field

For multi-select list box, the field name will have suffix '[]' e.g. colors[]. Currently Former will search for 'colors[]' from the language file while most of the time we only define translation for 'colors'.

I just realized the code is not robust as we should only replace the last two characters if they are '[]'.