Why text field is not taking the value

When passed the value through set text, existed default value is erased and unable to get the given value.