Any idea on why this might be happening? most of the time, two things happen
1. When type('Testing-7') then first whole thing will be type but after that only certain slice of string will only be present
2. After type('Testing-7') whole string will disappear