Custom post type name and assigning custom taxonomy

I’ve checked another option and asigned my custom taxonomy to custom post type using its name but without capitals and space.

‘postname’ works with original ‘Post Name’

So for custom post type

register_post_type( 'Post Name', $args );

I can use

register_taxonomy( 'custom taxonomy', array( 'postname' ), $args );

And it works.