Replaced the initialization of the strarray to use reseve instead of a initial size provided in the constructor as this was leading to a bug in output.