updateMap now works with user-input value using regex split. But is buggy because of large decimal values.