Correcting the case where there isn't a '#' in the neuron name:
the last char would get removed twice, incorrectly.