change substr to substring

Conflicts:
	assets/admin.js
test code for maxlength
Remove debug code. Increase Facebook max_broadcast_limit to 50000