Fix the constructor with string