daemon-rewrite/parser: Fix issues with whitespaces and range format