Logic to check if commands start with the configured prefix.