spelling was my favorite subject in school...spelling is an example of a noun created by a modifier or noun created from a verb
Spelling is a gerund, i.e. a verbal (it is based on a verb) that ends in -ing and functions as a noun.
(Travelling is my favourite pastime.
Your spelling is correct.
What she likes best is sleeping.)