corrected the syntax and moved away from directly refrencing base javascript type for string