In order to avoid confusion when sending XEC in larger amounts, a user requested that any amount over 3 digits be formatted with spaces. To do this, a function, formatXecOnInput, formats the amount. Because the sendBchInput uses a type of number, conditional formatting has been added. When SendBchInput loses focus, a readonly input with the type text replaces it. On focus, the readonly input will trigger the SendBchInput to reappear.