Handle error just after $ (or beginning of string)