Substitute for transistor 2N3904 that is a SMD
MMBT3904 is the same die. You should verify that the thermal performance is adequate, because it won't be as good as a TO-92.
The same part in SMD != doing the same job.