private fun getAmountLength(currency: CharSequence?, amount: CharSequence?): Int {
val currencyLength = currency?.length ?: 0
val amountLength = amount?.length ?: 0
// Add one if both curreny and amount are not empty
if (currencyLength > 0 && amountLength > 0)
return currencyLength + amountLength + 1
return currencyLength + amountLength
}