Avoid IndexError when passing an empty string to is_prefixed_with_dollar_sign
#712
+11
−4
is_prefixed_with_dollar_sign
#712