Fixed the problem with reading the title by using fget, working on removing whitespace.