Validate android input and allow more style of writing input for GCM