Handle pin as number (do not call replace)

With the servo examples, the call to `pin.replace` was throwing an error.