# Removing extra character

**URL:** <https://forum.kirupa.com/t/removing-extra-character/309408>\
**Category:** Uncategorized\
**Created:** [May 14, 2010, 6:08am UTC](https://forum.kirupa.com/t/removing-extra-character/309408 "2010-05-14T06:08:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivam](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@shivam](https://forum.kirupa.com/u/shivam)\
**Post date:** [May 14, 2010, 6:08am UTC](https://forum.kirupa.com/t/removing-extra-character/309408/1 "2010-05-14T06:08:47Z")

</div>

Hi,

I have a textbox and a button in flash. I send data to java server by entering data into the textbox. Firsttime the number of characters i am receiving are correct, from the second time onwards there is an extra character. i.e if i type 1 character it is showing 2. Can someone tell me how do i remove it.

below is the code,

function msgGO() {  
if (inputMsg.htmlText != “”) {  
mySocket.send(inputMsg.htmlText+"  
");  
inputMsg.htmlText = “”;  
}  
}

pushMsg.onRelease = function() {  
msgGO();  
};

Thanks
