Removing Blank Lines at the end of Object Text

So I have a mostly working script to do this based off of what was asked of me from my team, the only thing I can not figure out is why it keep inputting this strange symbol which looks like a  white bullet point inside a black box. Does anyone know what this is and how I can remove it or what part of this code is inputting this symbol?

//DXLRemoveBlankLineObject.dxl


/*
The script will find & remove blank lines at the end of object text.
*/
pragma runLim, 0 // no limit 
Module m = current
Object o =current

ack "The script will find & remove blank lines at the end of object text."

/*
START replace newline with XXXX for easy replacemment later in DXL for Description
*/

string searIND = "\\n$"
string txtIND
Regexp regIND = regexp(searIND)
txtIND = o."Object Text" ""
if (!null txtIND && regIND txtIND) 
        {
                while (!null txtIND && regIND txtIND)
                        {
                                txtIND = txtIND[0:start 0 - 1]"\b"txtIND[end 0 + 1:]
                                o."Object Text" = txtIND
                        }
        }
halt

/*
END replace newline with XXXX for easy replacement later in DXL for Description
*/
ack " COMPLETED!"

 


MrNiceGuy - Tue Dec 20 15:47:49 EST 2016

Re: Removing Blank Lines at the end of Object Text
MrNiceGuy - Tue Dec 20 16:19:24 EST 2016

This is what the symbol looks like that is getting inserted into DOORs when I try and remove the blank white lines

If I copy and paste the symbol from DOORs to WORD it shows as a _ but when I try and search or replace an _ it doesn't find anything

Re: Removing Blank Lines at the end of Object Text
MrNiceGuy - Tue Dec 20 17:26:33 EST 2016

Never mind I figured it out

apparently the "\b" isn't actually a backspace like I thought it was so I just removed it and everything worked afterwards

                                txtIND = txtIND[0:start 0 - 1]txtIND[end 0 + 1:]