fixing missing letters bug due to bad regex