Getting "'string' does not name a type" Error