This Script will split the String with : as delimiter, and populate the Text fields

String Part 1:
String Part 2:

Here the value will be set via innerHTML:

Entered String:

Some parseInt() samples

Some parseFloat() samples