fixed corner case string input