1.
12

2.
You'll have to giveout a parameter along with substr

3.
Don't know