Changed parser to allow empty strings to be parsed (to another empty string). Also changed the way segments are concat'ed together for slightly better efficiency.