Use format string when parsing custom ranges