Limit pasted text length