fixed compile issues and trimmer regex to accept - for negative numbers