Empty strings handling in keywords