Make the pageid argument accept strings

PageID can be in string form too.