check for number after $ sign