Bug fix for multiple lines input