strip out non numbers and give the left side commas, also fixed a small bug, fixes #787