fix bug with null values
fix null bug if input is just one letter
update bugs