Add regexp checks on WS's inputs

Add some checks on input like application name, package, activity and layout name to improve the security.