"A rose by any other name would smell as sweet" is a commonly quoted part of a dialogue in William Shakespeare's play Romeo and Juliet, in which Juliet argues that the names of things do not matter, only what things "are".
In Act II, Scene 2 of the play, the line is said by Juliet in reference to Romeo's house, Montague which would imply that his name means nothing and they should be together.
O Romeo, Romeo! wherefore art thou Romeo? Deny thy father and refuse thy name; Or, if thou wilt not, be but sworn my love, And I'll no longer be a Capulet.
[Aside] Shall I hear more, or shall I speak at this?
'Tis but thy name that is my enemy; Thou art thyself, though not a Montague. What's Montague? it is nor hand, nor foot, Nor arm, nor face, nor any other part Belonging to a man. O, be some other name! What's in a name? that which we call a rose By any other name would smell as sweet; So Romeo would, were he not Romeo call'd, Retain that dear perfection which he owes Without that title. Romeo, doff thy name, And for that name which is no part of thee Take all myself.
I take thee at thy word: Call me but love, and I'll be new baptized; Henceforth I never will be Romeo.
In Disney's The Princess Diaries, character Mia recites this scene from "What's in a name? that which we call a rose/A rose my any other name would smell as sweet" when practicing speeches in princess lessons.