# SplitString problem

**URL:** <https://forum.kirupa.com/t/splitstring-problem/254871>\
**Category:** flash\
**Created:** [March 16, 2008, 6:20pm UTC](https://forum.kirupa.com/t/splitstring-problem/254871 "2008-03-16T18:20:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuk](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@samuk](https://forum.kirupa.com/u/samuk)\
**Post date:** [March 16, 2008, 6:20pm UTC](https://forum.kirupa.com/t/splitstring-problem/254871/1 "2008-03-16T18:20:49Z")

</div>

Hi, i have an array of numbers like the following, +1.2, +5.0, -3.0, +4.0

now, i have used the sub string to pull out all numbers beginning with ‘+’ and all numbers beginning with ‘-’.

i would like to take the numbers beginning with ‘-’ and remove the ‘-’ (minus sign)

I have used the split string and i am able to remove the ‘-’, but for some reason i get a comma before the number instead, eg, ‘,3.0’?

so when i try and add my new number to another velue i get an error?

Can some one tell me hoe to get rid of the comma??

Many Thanks  
Sam
