updated to now also supporting interpolated string in constructor