fixed bug with 0-length matchs' to_s returning non-zero-length strings